package com.jindun.common;

import java.text.MessageFormat;
import java.util.Locale;
import java.util.ResourceBundle;

public class MessageUtil {
	private static ResourceBundle bundle = ResourceBundle.getBundle("application",
			Locale.CHINESE);

	public static String getMessage(String key, Object... args) {
		String message = bundle.getString(key);
		return MessageFormat.format(message, args);
	}
	
	public static String getMessageAsLabel(String key) {
		return getMessage(key) + ":";
	}
	
	
	
}
